﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RzCorportativo.Views.Financeiro
{
    /// <summary>
    /// Summary description for ImagemCodigoBarra
    /// </summary>
    public class ImagemCodigoBarra : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "image/bmp";
            context.Response.WriteFile(HttpContext.Current.Server.MapPath("~/" + context.Request["code"] + ".bmp"));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}